package com.fan.analysis.module.preprocessing.fusion.controller;

import com.fan.analysis.common.domain.ResponseDTO;
import com.fan.analysis.module.preprocessing.fusion.domain.vo.FusionVo;
import com.fan.analysis.module.preprocessing.fusion.service.FusionService;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 融合记录控制器
 *
 * @author fan
 * @date 2021/09/20 12:56
 **/
@RestController
@Slf4j
public class FusionController {


    @Autowired
    private FusionService fusionService;

    @ApiOperation("数据融合-开始融合 @author fan")
    @PostMapping(value = "/preprocessed/data_fusion")
    public ResponseDTO<FusionVo> dataFusion(@RequestParam("phone_num") String phoneNum) {
        log.info("数据融合-开始融合");
        log.info(phoneNum);
        return fusionService.dataFusion(phoneNum);
    }


}
